﻿<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/Admin/Master/AdminMaster.Master" CodeBehind="SelectActualPrice.aspx.cs" Inherits="HZ.DrugTrade.Web.SelectActualPrice" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">查看医疗机构实际采购价</a></li>
        </ul>
    </div>
    <div id="tabcontent">
      
        <table id="tbl" class="querylist">
            <tr>
                <td align="right">
                    <asp:Label ID="lblHosName" runat="server" Text="医疗机构名称："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtHosName" runat="server"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="lblCmpName" runat="server" Text="配送企业名称："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtCmpName" runat="server"></asp:TextBox>
                </td>
                <td align="right">
                            <asp:Label ID="Label2" runat="server" Text="所在地区："></asp:Label>
                        </td>
                       <td align="left" runat="server" id="ddlID" visible="true">
                            <asp:DropDownList ID="ddlProvice" runat="server">
                                <asp:ListItem Value="">所在省</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;<asp:DropDownList ID="ddlCity" runat="server">
                                <asp:ListItem Value="">所在城市</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;<asp:DropDownList ID="ddlCountry" runat="server">
                                <asp:ListItem Value="">所在区县</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                <td align="center">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn" />
                </td>
            </tr>
            <asp:Literal runat="server" ID="ltlAdvance" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
        </table>

    <asp:GridView ID="gvwShowDate" runat="server" AutoGenerateColumns="False" Width="100%"
        CssClass="mainlist" EmptyDataText="暂无相关的数据！" OnRowDataBound="gvwShowDate_RowDataBound">
        <Columns>
            <asp:BoundField DataField="Goodsid" HeaderText="产品编号" Visible="false" />
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:BoundField DataField="PackUnit" HeaderText="包装单位" />
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
            <asp:BoundField DataField="SortName" HeaderText="分类"  Visible="false"/>
            <asp:BoundField DataField="HospitalName" HeaderText="医疗机构名称" />
            <asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <%--<asp:BoundField DataField="procurePrice" HeaderText="采购限价" DataFormatString="{0:N4}"/>--%>
            <asp:TemplateField HeaderText="采购限价">
                <ItemTemplate>
                    <asp:Label ID="lblProcurePrice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(ProjectID, Eval("ProcurePrice")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <%--<asp:BoundField DataField="Price" HeaderText="采购价" DataFormatString="{0:N4}"/>--%>
            <asp:TemplateField HeaderText="采购价">
                <ItemTemplate>
                    <asp:Label ID="lblPrice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(ProjectID, Eval("Price")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Center" />
    </asp:GridView>
    </div>
   <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listctrl">
<hz:HzButton ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" ToolTip="导出Excel"
                        OnClick="btnExport_Click" /></div>
    <script type="text/javascript" language="javascript">
        new PCAS("ctl00$ContentPlaceHolder1$ddlProvice","ctl00$ContentPlaceHolder1$ddlCity","ctl00$ContentPlaceHolder1$ddlCountry" <%=GetDefaultAreaString() %>);
    </script>
</asp:Content>
